package com.data.model.sqlclause.where.condition;

import com.data.model.enums.OperatorEnum;
import com.data.model.constant.SqlConstant;
import com.data.model.sqlclause.where.basic.AtomicCondition;
import lombok.Data;

@Data
public class SqlCondition extends AtomicCondition {
    private String value;

    @Override
    public String getOperator() {
        return OperatorEnum.SQL.getCode();
    }

    @Override
    public String toConditionStr() {
        return getKey() + SqlConstant.SPACE + value;
    }

    @Override
    public boolean valid() {
        return true;
    }
}
